<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta charset="utf-8">
    <title>编辑用户</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/system/layui/css/layui.css" media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
<br>
<form class="layui-form" method="post">
    <div class="layui-form-item">
        <input type="hidden" name="id" id="val1" th:value="${userBean.id}"/>
        <label class="layui-form-label" style="background-color: #009688;color: #F8F8F8;width: 60px;">用户名</label>
        <div class="layui-input-block" style="width: 200px;">
            <input type="text" name="show_name" id="val2" lay-verify="title" autocomplete="off" class="layui-input" th:value="${userBean.show_name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="background-color: #009688;color: #F8F8F8;width: 60px;">登录名</label>
        <div class="layui-input-block" style="width: 200px;">
            <input type="text" name="login_name" id="val3" lay-verify="title" autocomplete="off" class="layui-input" th:value="${userBean.login_name}">
            <span id="1" style="color: red" ></span>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" style="background-color: #009688;color: #F8F8F8;width: 60px;">联系电话</label>
        <div class="layui-input-block" style="width: 200px;">
            <input type="text" name="tel" id="val6" lay-verify="title" autocomplete="off" class="layui-input tel" th:value="${userBean.tel}">
        </div>
    </div>
    <button type="submit" onclick="sub()" class="layui-btn layui-btn-warm" style="position: absolute; left: 5%;">修改</button>
</form>
</body>
<script type="text/javascript" src="/system/layui/layui.js"></script>
<script type="text/javascript" src="/system/js/jquery-3.3.1.js"></script>
<script type="text/javascript" src="/user/edit.js"></script>
</html>